
ISAKMP POLICY (Phase-1):
Encryption algorithm | aes |
Hash algorithm | md5 |
DH group | 5 |
Authentication method | Pre-shared-key (Nh12345) |
Lifetime | 43200 |
IPSEC POLICY (Phase-2):
Encapsulation-Encryption | esp-des |
Encapsulation-Hash | esp-sha-hmac |
Solution:
STEP 0:
Before starting VPN Configuration, check the reachability between VPN peers.
R1(config)#ip route 10.1.2.0 255.255.255.0 10.1.1.5
R1(config)#ip route 2.2.2.2 255.255.255.255 10.1.1.5
R2(config)#ip route 1.1.1.1 255.255.255.255 10.1.2.5
Verification:
R1#ping 10.1.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.2, timeout is 2 seconds:
!!!!!
Step 1: Configure ISAKMP Policy
R1(config)#crypto isakmp policy 1
R1(config-isakmp)#encryption aes
R1(config-isakmp)#hash md5
R1(config-isakmp)#group 5
R1(config-isakmp)#authentication pre-share
R1(config-isakmp)#lifetime 43200
Step 2: Configure ISAKMP Key
Step 3: Configure Mirrored ACL/Crypto ACL for interesting traffic
Step 4: Configure Transform set
R1(config)#crypto ipsec transform-set TFS esp-des esp-sha-hmac
//Since my VPN Peers and proxy-id are different, use tunnel mode//
Step 5: Configure Crypto Map
R1(config)#crypto map CRYMAP 1 ipsec-isakmp
% NOTE: This new crypto map will remain disabled until a peer
and a valid access list have been configured.
R1(config-crypto-map)#set peer 10.1.2.2
R1(config-crypto-map)#match address 111
R1(config-crypto-map)#set transform-set TFS
R1(config)#interface fastEthernet 0/0
R1(config-if)#crypto map CRYMAP
%CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is ON
//ISAKMP is enabled//
R1(config-if)#exit
R2 Configuration:
Step 1: Configure ISAKMP Policy
R2(config)#crypto isakmp policy 1
R2(config-isakmp)#encryption aes
R2(config-isakmp)#hash md5
R2(config-isakmp)#group 5
R2(config-isakmp)#authentication pre-share
R2(config-isakmp)#lifetime 43200
Step 2: Configure ISAKMP Key
Step 3: Configure Mirrored ACL/Crypto ACL for interesting traffic
Step 4: Configure Transform set
R2(config)#crypto ipsec transform-set TFS esp-des esp-sha-hmac
R2(cfg-crypto-trans)#mode tunnel
Step 5: Configure Crypto Map
R2(config)#crypto map CRYMAP 1 ipsec-isakmp
% NOTE: This new crypto map will remain disabled until a peer
and a valid access list have been configured.
R2(config-crypto-map)#set peer 10.1.1.1
R2(config-crypto-map)#match address 111
R2(config-crypto-map)#set transform-set TFS
R2(config)#interface fastEthernet 0/0
R2(config-if)#crypto map CRYMAP
%CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is ON
R2(config-if)#exit
VERIFY THE CONFIGURATION:

This command displays the isakmp policy we have configured along with default policy.

This command displays our proxy-id (interesting traffic that has to be protected)

This command displays the transform-set we have configured.


This command displays the crypto map we have applied on the particular interface.
Let’s generate the traffic between the proxy-id (interested traffic)
R1#ping 2.2.2.2 source loopback 0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5)

This command displays the sa created for isakmp tunnel.



This command displays the two SAs created for phase 2 tunnel.
